package com.hp.team.bookstore.dbutil;

import java.text.DecimalFormat;

public class Utils {

	public static double generateRandomNumber(double min, double max) {
		double random = min + (int) (Math.random() * ((max - min) + 1));
		String formattedRandom = new DecimalFormat("0.00").format(random);
		return Double.valueOf(formattedRandom);
	}
}
